package com.jr.mapper;

import com.jr.pojo.User;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UserMapper {

    User selectById(Integer userId);

    User selectByUsername(String username);

    User selectByEmail(String email);

    int insertUser(User user);

    int updateUser(User user);

    int updatePassword(User user);

    List<User> selectByUserType(String userType);

    List<User> selectByStatus(String status);
}
